package cn.net.shuxing.yifu.common.bean;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;

@Data
public class UserInfo extends BaseBean implements Serializable{
	@Id
	@Column
	private Integer id;
	@Column
	private String nickName;
	@Column
	private String picture;
	@Column
	private Integer deleted;
	@Column
	private java.time.LocalDateTime createTime;
	@Column
	private java.time.LocalDateTime updateTime;

	@Transient
	private String pictureOssUrl;

	public UserInfo()
	{
		super();
		picture = "default.png";
	}
}

/*
{
	id:用户id,
	nickName:昵称,
	picture:头像,
	deleted:是否已被删除，0表示未被删除，1表示已被删除,
	createTime:创建时间,
	updateTime:最新修改时间
	pictureOssUrl:头像图片链接
}

*/
